package test.com.sky.designPattern.observerPattern.listener;

import com.sky.JULLog.MyLogger;

import java.util.EventObject;
import java.util.logging.Logger;

/**
 * @author : wushikai
 * <p>
 * date : 2022-05-27
 */
class UserEvent extends EventObject {

    private static Logger log = MyLogger.getLogger(UserEvent.class);

    /**
     * Constructs a prototypical Event.  构造一个原型事件。
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    UserEvent(Object source) {
        super(source);
    }

    void processNotification(String id) {
        log.info("邮件已发送给用户 [" + id +"] ");
    }
}
